<?php
echo $_SERVER['REQUEST_METHOD'];
$content=file_get_contents('php://input');
echo file_put_contents('upload.jpg',$content);